package com;

import com.shfl.stock.Stock;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

public class Main extends Application {

	private Parent rootNode;

	
	
	public static void main(final String[] args) {
		Application.launch(args);
	}

	

	@Override
	public void start(Stage stage) throws Exception {
        Parent root = FXMLLoader.load(getClass().getResource("/fxml/login.fxml"));
        Stock.TLOGIN_STAG.setTitle("泰噗考勤");
        Stock.TLOGIN_STAG.getIcons().add(new Image("/path/taipu.png"));
        Stock.TLOGIN_STAG.setScene(new Scene(root));
        Stock.TLOGIN_STAG.show(); 
	}
	
	@Override
	public void stop() throws Exception {
		Stock.TLOGIN_STAG.hide();
	}
	
}
